import request from "@/utils/request";

export function addAgencyType(agencyType) {
    return request({
        url: '/agencyType/addAgencyType',
        method: 'post',
        data:agencyType
    })
}

export function deleteAgencyType(ids) {
    return request({
        url: '/agencyType/deleteAgencyType',
        method: 'delete',
        data:ids
    })
}

export function changeAgencyType(agencyType) {
    return request({
        url: '/agencyType/updateAgencyType',
        method: 'post',
        data:agencyType
    })
}

export function getAllAgencyType(agencyType,page,pageSize) {
    return request({
        url: '/agencyType/getAllAgencyType?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:agencyType
    })
}
export function getAgencyTypeList() {
    return request({
        url: '/agencyType/getAgencyTypeList',
        method: 'get',
    })
}
